package cn.waxcc.mapper;

import cn.waxcc.pojo.HrsPatientregistration;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: springboot-medicalapp
 * @interfaceName HrsPatientregistrationMapper
 * @description:
 * @author: JYF
 * @create: 2023-04-11 10:39
 * @Version 1.0
 */
@Repository
public interface HrsPatientregistrationMapper {

    /**
     * 查询所有信息
     * @return
     */
    public List<HrsPatientregistration> findAllHrsPatientregistration();

    /**
     * 添加
     * @return 影响行数
     */
    public int inset(HrsPatientregistration hrsPatientregistration);

    /**
     * 根据身份证号码查询
     * @param statusid
     * @return
     */
    public HrsPatientregistration findByStatusid(String statusid);

    /**
     * 根据id删除
     * @param pid
     * @return
     */
    public int delBypId(Integer pid);

    /**
     * 根据姓名查询
     * @param pName
     * @return
     */
    public List< HrsPatientregistration> queryBypName(String pName);

    /**
     * 根据id修改
     * @param hrsPatientregistration
     * @return
     */
    public Integer updateBypId(HrsPatientregistration hrsPatientregistration);

    /**
     * 根据id查询
     * @param pId
     * @return
     */
    public HrsPatientregistration queryBypId(Integer pId);
}
